Skip to content

fix(insights): keep window controls last in toolbar - #124

Open
edalicioh wants to merge 1 commit into
GaganSD:mainfrom
edalicioh:fix/insights-toolbar-window-buttons
Open

edalicioh wants to merge 1 commit into
GaganSD:mainfrom
edalicioh:fix/insights-toolbar-window-buttons

Conversation

@edalicioh

Copy link
Copy Markdown

Fixes #123

Summary

  • Accept tab-bar blocks backed by personal cloned mods, not only tabs.
  • On Windows and Linux place Insights before the tab bar, keeping its minimize/maximize/close controls last; retain the macOS placement after the bar.
  • Add placement and cloned-tab-bar coverage; document the platform behavior.

Validation

  • node --test tests/herdr-insights/toolbar-layout.test.mjs (5 passing)
  • npx eslint herdr-insights/scripts/toolbar.mjs tests/herdr-insights/toolbar-layout.test.mjs tests/herdr-insights/toolbar-install.test.mjs tests/herdr-insights/install-fixtures.mjs
  • Full installer test suite was attempted on Windows but its fake herdr-app runner uses a POSIX shebang, so it cannot run in this environment. The POSIX CI should exercise it.

The installer refused any layout whose tab bar is a personal clone
(content.mod other than "tabs"), and when it did install it placed the
Insights button after the tab bar. On Windows and Linux the tab bar draws
minimize/maximize/close at its own end (window().buttons), so the button
landed after them and the window buttons were no longer last.

- accept any mod-backed "tabs" block, not just Herdr's own tabs mod
- place the button before the bar on Windows/Linux and after it on macOS,
  where a leading button would collide with the traffic lights
- inject the platform so both placements are covered by tests, and cover
  a cloned tab bar end to end
- update INSTALL.md, README.md and the development guide

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Insights toolbar button is placed after the window controls on Windows

1 participant